$(function() {
	$( "#datepicker" ).datepicker();
});
$(function() {
	$( "#selectable" ).selectable();
});

$(function() {
	$( "input:submit").button();
});
 
function validateEmail()
{
	var x=document.forms["indexForm"]["user_email"].value;
	//alert(x)
	var atpos=x.indexOf("@");
	var dotpos=x.lastIndexOf(".");
	if (atpos<1 || dotpos<atpos+2 || dotpos+2>=x.length)
 	{
 		alert("Not a valid e-mail address");
  		return false;
 	 }
}
